main(i,s,t,c){char l[11],r[11],a[11];for(;~scanf("%s%s",l,r);){if(!strcmp("0",l)&&!strcmp("0",r))break;memset(a,0,11);s=strlen(l);t=strlen(r);if(s<t){strcpy(a,l);strcpy(l,r);memset(r,'0',10);strcpy(r+t-s,a);}else{strcpy(a,r);memset(r,'0',10);strcpy(r+s-t,a);}s=t=strlen(l);for(c=0,i=s;i--;)if((l[i]+r[i]-96)>9){l[i-1]++;c++;}printf(c?"%d ":"No ",c);puts(c>1?"carry operations.":"carry operation.");}}
